package com.csap.framework.oauth2.request;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.oauth2.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Set;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "角色", value = "roles对象")
public class RolesRequest extends BaseRequest<RolesRequest> implements Serializable {
    /**
     * 每页显示条数，默认 10
     */
    @ApiModelProperty(value = "分页显示的条数", defaultValue = "20", example = "20", ignoreReq = true)
    private long size = 20;

    /**
     * 当前页
     */
    @ApiModelProperty(value = "分页显示的条数", description = "分页显示的条数", defaultValue = "1", example = "1", ignoreReq = true)
    private long current = 1;
    @ApiModelProperty(description = "角色ID", value = "角色ID")
    private Long roleId;
    @ApiModelProperty(description = "角色名称", value = "角色名称", forceReq = true)
    private String name;
    @ApiModelProperty(description = "描述", value = "描述")
    private String descr;
    @ApiModelProperty(description = "创建时间", value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "角色类型1平台2客户端", forceReq = true)
    private Integer type;
    @ApiModelProperty(value = "角色类型1平台2客户端", forceReq = true)
    private String typeId;
    @ApiModelProperty("是否删除")
    private Boolean del;
    @ApiModelProperty(description = "是否默认角色", value = "是否默认角色", forceReq = true)
    private Integer defaults;
    @ApiModelProperty(value = "部门Id")
    private Long deptId;
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty(value = "权限")
    private Set<String> permissions;
    @ApiModelProperty(value = "查询包含在内的角色")
    private Set<String> includes;
}
